/**
 * Copyright By Grandsoft Company Limited. 
 * @author zhaoxj
 * @date 2015年7月16日
 */
package org.suren.littlebird.editors;

import java.io.InputStream;

import org.eclipse.core.resources.IStorage;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.suren.littlebird.po.SuRenBundle;

/**
 * @author zhaoxj
 * 
 * @2015年7月16日
 */
public class BundleStorage implements IStorage {
	
	private SuRenBundle suRenBundle;
	
	public BundleStorage(SuRenBundle suRenBundle)
	{
		this.setSuRenBundle(suRenBundle);
	}

	/*
	 * 
	 */
	@Override
	public Object getAdapter(Class arg0) {
		// TODO Auto-generated method stub
		return null;
	}

	/*
	 * 
	 */
	@Override
	public InputStream getContents() throws CoreException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public IPath getFullPath() {
		// TODO 还没有实现
		String path = getSuRenBundle().getLocation();
		return null;
	}

	@Override
	public String getName() {
		return getSuRenBundle().getName();
	}

	@Override
	public boolean isReadOnly() {
		return true;
	}

	public SuRenBundle getSuRenBundle() {
		return suRenBundle;
	}

	public void setSuRenBundle(SuRenBundle suRenBundle) {
		this.suRenBundle = suRenBundle;
	}

}
